//
//  QueryAccountDetailOperation.m
//  PlayBall
//
//  Created by Edward Zhang on 12-6-1.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddQueryAccountDetailOperation.h"

@implementation JddQueryAccountDetailOperation

@synthesize timeRegion;
@synthesize pageNo;
@synthesize type;
@synthesize pageSize;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    
    NSString *bodyString = [JddParameterBuilder queryAccountDetailForPageNo:self.pageNo pageSize:self.pageSize type:self.type timeResion:self.timeRegion];
    
    NSData *dataBindCard = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(QueryAccountDetailOperationResult:) withObject:dataBindCard waitUntilDone:NO];        
}

@end
